package com.hgyc.mom.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 参数配置
 * </p>
 *
 * @author fwj
 * @since 2025-05-13
 */
@Data
@TableName("sys_config")
@Schema(name="参数配置对象", description="参数配置对象")
public class SysConfig implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "参数主键")
    private Long id;

    @Excel(name = "参数名称")
    @EQ
    @Schema(description = "参数名称")
    private String configName;

    @Excel(name = "参数键名")
    @EQ
    @Schema(description = "参数键名")
    private String configKey;

    @Excel(name = "参数键值")
    @Schema(description = "参数键值")
    private String configValue;

    @EQ
    @Excel(name = "参数类型")
    @Schema(description = "参数类型")
    private String configType;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @Excel(name = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

}